<?php
$dtds['setup']['username']['name'] 			= '昵称';
$dtds['setup']['alipay_account']['name']  	= '支付宝';
$dtds['setup']['email']['name']  			= 'Email';
$dtds['setup']['password']['name']  		= '密码';
$dtds['setup']['confirm']['name']  			= '确认密码';

$dtds['setup']['username']['value']['required']  		= true;
$dtds['setup']['username']['value']['mask']  			= '/^[^@]+$/';
$dtds['setup']['alipay_account']['value']['required']  	= false;
$dtds['setup']['email']['value']['required']  			= false;
$dtds['setup']['password']['value']['required']  	= true;
$dtds['setup']['confirm']['value']['required']  	= true;
$dtds['setup']['password']['value']['min_length']  	= 6;
$dtds['setup']['password']['value']['max_length']  	= 16;
$dtds['setup']['confirm']['value']['min_length']  	= 6;
$dtds['setup']['confirm']['value']['max_length']  	= 16;
$dtds['setup']['confirm']['value']['equal_to']['from']  = 'POST';
$dtds['setup']['confirm']['value']['equal_to']['name']  = 'password';

$dtds['setup']['username']['message']['required'] 		= "%s必填项";
$dtds['setup']['username']['message']['mask'] 		= "%s不能含有@字符";
$dtds['setup']['alipay_account']['message']['required'] = "%s必填项";
$dtds['setup']['email']['message']['required'] = "%s必填项";
$dtds['setup']['password']['message']['required'] = "%s必填项";
$dtds['setup']['confirm']['message']['required'] = "%s必填项";
$dtds['setup']['password']['message']['min_length']  = "%s最少%s个字符";
$dtds['setup']['password']['message']['max_length']  = "%s最多%s个字符";
$dtds['setup']['confirm']['message']['min_length']  = "%s最少%s个字符";
$dtds['setup']['confirm']['message']['max_length']  = "%s最多%s个字符";
$dtds['setup']['confirm']['message']['equal_to']  = "两次输入的密码不相等";


$dtds['alipay']['alipay_account']['name']  		= '支付宝账号';
$dtds['alipay']['confirm']['name']  			= '确认支付宝';

$dtds['alipay']['alipay_account']['value']['required']  	= true;
$dtds['alipay']['confirm']['value']['required']  			= true;
$dtds['alipay']['confirm']['value']['equal_to']['from']  	= 'POST';
$dtds['alipay']['confirm']['value']['equal_to']['name']  	= 'alipay_account';

$dtds['alipay']['alipay_account']['message']['required']	= "%s必填项";
$dtds['alipay']['confirm']['message']['required'] 			= "%s必填项";
$dtds['alipay']['confirm']['message']['equal_to']  			= "两次输入的支付宝账户不一致";


$dtds['password']['oldpassword']['name']  		= '旧的密码';
$dtds['password']['password']['name']  			= '新的密码';
$dtds['password']['confirm']['name']  			= '确认密码';

$dtds['password']['oldpassword']['value']['required']  		= true;
$dtds['password']['password']['value']['required']  		= true;
$dtds['password']['confirm']['value']['required']  			= true;
$dtds['password']['confirm']['value']['equal_to']['from']  	= 'POST';
$dtds['password']['confirm']['value']['equal_to']['name']  	= 'password';

$dtds['password']['oldpassword']['message']['required']		= "%s必填项";
$dtds['password']['password']['message']['required']		= "%s必填项";
$dtds['password']['confirm']['message']['required'] 		= "%s必填项";
$dtds['password']['confirm']['message']['equal_to']  		= "两次输入的密码不一致";